package model.commands.mouse;

import model.commands.AbstractCommand;

public class MouseWheel extends AbstractCommand {

	private Integer notches=null;

	@Override
	public void execute() {
		try {
			if(notches != null){
				robot.mouseWheel(notches);
			}
			propertyChangeSupport.firePropertyChange(EXECUTION_FINISHED, null, this);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	@Override
	public void setParams(Object[] params) {
		notches = ((Integer) params[0]);
	}

	/**
	 * @return the notches
	 */
	public Integer getNotches() {
		return notches;
	}

	/**
	 * @param notches the notches to set
	 */
	public void setNotches(Integer notches) {
		this.notches = notches;
	}
	

}
